import React from 'react'

function FU(props) {
  return (
    <div>
        <ul className='list'>
            {props.conf.map(item=>{
                return <li key={item.id} onClick={()=>{props.setCode(item.id)}} className={item.id===props.code?'active':''}>{item.name}</li>
            })}
        </ul>
    </div>
  )
}

export default FU